package com.qk.management.mapper;

import com.qk.dto.ActivityDTO;
import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ActMapper {

    @Select("SELECT * FROM activity WHERE id= #{id}")
    Activity selectById(Integer id);

    @Delete("DELETE FROM activity WHERE id= #{id}")
    void deleteById(Integer id);

    void insert(Activity act);

    List<Activity> selectByPage(ActivityDTO actDTO);

    void updateAct(Activity act);
}
